package com.ruoyi.app.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user_auth")
public class UserAuth {


    /**
     * uuid
     */
    @TableId(value = "user_id", type = IdType.INPUT)
    private String userId;


    /**
     * 实名认证
     * 0: 未认证
     * 1: 审核中
     * 2: 审核失败
     * 3: 审核失败
     */
    @TableField("real_name_state")
    private Integer realNameState;

    /**
     * 实名认证
     */
    @TableField("real_name_state_pic")
    private String realNameStatePic;


    /**
     * 住房认证
     * 0: 未认证
     * 1: 审核中
     * 2: 审核失败
     * 3: 审核失败
     */
    @TableField("real_house_state")
    private Integer realHouseState;

    /**
     * 住房认证
     */
    @TableField("real_house_state_pic")
    private String realHouseStatePic;


    /**
     * 车辆认证
     * 0: 未认证
     * 1: 审核中
     * 2: 审核失败
     * 3: 审核失败
     */
    @TableField("real_car_state")
    private Integer realCarState;

    /**
     * 车辆认证
     */
    @TableField("real_car_state_pic")
    private String realCarStatePic;


    /**
     * 检测时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
